<%@page import="uit.pubguru.constant.PubGuruConst"%>
<% 
    String pageResult = (String) request.getAttribute("pageResult");
   session.setAttribute("pageResult_", pageResult);
    if(pageResult == null)
        pageResult = PubGuruConst.RESULT_REGISTER;
   
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Publication Guru</title>
        <link href="css/style.css" rel="stylesheet" type="text/css" />
        <link href="css/mystyle.css" rel="stylesheet" type="text/css" />
         <script language="javascript" src="javascript/jquery-1.7.1.min.js"></script> 
    </head>

    <body>
        <div class="wrapper">
                 <div class="content">                
                <form action ="UserController" method="POST">
                <div class="content_wrapper">
                    <div class="center_wrapper">
                        <% if(pageResult.equals(PubGuruConst.RESULT_REGISTER)) {%>
                           <div class="result_message">
                            <span class="message_sucessness"><img src="images/editauthor/success.png"/></span>
                                <div>
                                <span class="result_title">Your Request was Submitted Successfully</span>
                                <p> Your request to has been submitted to PubGuru Search successfully.</p>                            
                                <p>Please comfirm registiton by check email to active your accrount! </p>
                                <p>Thanks. </p>
                                </div>
                                <div  style=" margin-right: 321px; margin-top: 50px;">
                                    <input id="submitbutton_cancle" name="action" type="submit" value="Continue" class="g_button g_button_submit" onclick="refresh('login.jsp')"/>
                                </div>          
                           </div>   
                       <% } %>
                        <% if(pageResult.equals(PubGuruConst.RESULT_EDIT)){ %>
                            <div class="result_message">
                            <span class="message_sucessness"><img src="images/editauthor/success.png"/></span>
                                <div>
                                <span class="result_title">Your Request was Submitted Successfully</span>
                                <p>Your request to edit Author has been submitted to Microsoft Academic Search successfully.</p>                            
                                <p>Thank you for your feedback, we will look into the issue you just reported. It usually takes up to one week to finish the verification and update the website with correct information. We appreciate your patience.</p>                               
                                </div>
                                <div  style=" margin-right: 321px; margin-top: 50px;">
                                    <input id="submitbutton_cancle" name="action" type="submit" value="Continue" class="g_button g_button_submit" onclick="refresh('index')" />
                        </div>   
                       <% } %>
                       <% if(pageResult.equals(PubGuruConst.RESULT_IGNORE)){ %>
                            <div class="result_message">
                            <span class="message_sucessness"><img src="images/editauthor/success.png"/></span>
                                <div>
                                <span class="result_title">You have been ignored this feedback.</span>
                                </div>
                                <div  style=" margin-right: 321px; margin-top: 50px;">
                                    <input id="submitbutton_cancle" name="action" type="submit" value="Continue" class="g_button g_button_submit" onclick="refresh('index')" />
                        </div>
                       <% } %>
                       <% if(pageResult.equals(PubGuruConst.RESULT_COMPETE)){ %>
                            <div class="result_message">
                            <span class="message_sucessness"><img src="images/editauthor/success.png"/></span>
                                <div>
                                <span class="result_title">This author information has been updated !</span>
                                </div>
                                <div  style=" margin-right: 321px; margin-top: 50px;">
                                    <input id="submitbutton_cancle" name="action" type="submit" value="Continue" class="g_button g_button_submit" onclick="refresh('index')" />
                        </div>
                       <% } %>
                        <% if(pageResult.equals("loginfail")){ %>
                            <div class="result_message">
                            <span class="message_sucessness"><img src="images/editauthor/fail.png"/></span>
                                <div>
                                    <span class="result_title" ><font color ="red">Login fail ! Your email or password is wrong.</font></span>
                                </div>
                                <div  style=" margin-right: 321px; margin-top: 50px;">
                                    <input id="submitbutton_cancle" name="action" type="submit" value="Continue" class="g_button g_button_submit" onclick="refresh('index')" />
                        </div>
                       <% } %>
                    </div>
                    <div class="clear"></div>
                </div><!-- end content_wrapper-->
            </div><!-- end .content -->
            </form>
        </div><!-- end .wrapper --> 
        <div class="push"></div>
         <script>
           function refresh(link){
                window.location = ("login.jsp");
           }
        </script>


        </body>
</html>
